#ifndef _CBULLET_H_
#define _CBULLET_H_

#include "Commons.h"
#include "CAnimatedObject.h"
#include "CBulletParams.h"
#include "cocos2d.h"
#include "Box2D/Box2D.h"

/**
 * This class handles the bullet movement.
 */
class CBullet : public CAnimatedObject
{
public:
	CBullet();
	bool init(char* frameNamePrefix, cocos2d::CCSpriteBatchNode* pSpriteSheet, b2World* pWorld);
	void fire(CBulletParams bulletParams);
	void removeBullet();
	float getDamage();
	void collision();
	CBulletParams::EBulletType getType();
	CBulletParams				_bulletParams;
private:	
	cocos2d::CCSize				_winSize;

	void createBoxBody();
};

#endif //_CBULLET_H_
